<style type="text/css">
#userdiv {
	float:right;
	padding-right:20px;
}
#headcont {
	background-color: #595757;
	height: 30px;
	width: 100%;
	clear: both;
	position: fixed;
	font-size:24px;
}
</style>

			<?php 
			if(isset($this->session->userdata['privilegio'])){
			$unombre = $this->session->userdata['username'];			echo "<div id=\"headcont\">";
			echo " <div id=\"userdiv\"><i class=\"icon-user\"></i>$unombre </div>";
			echo"</div>";
			}
            
            ?>
 

